<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>文件管理</title>
    <link rel="stylesheet" href="${base}/layui/css/layui.css">
    <style>
    	.hide {display: none;}
    </style>
</head>
<body  class="layui-layout-body">
<#include "/common/left.flt">	
<div class="layui-main" style="position: absolute;left: 300px;top: 50px;" >
<table class="layui-hide" id="test"></table>
</div>
</body>
<script src="${base}/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="${base}/js/jquery.form.js" type="text/javascript"></script>
<script src="${base}/layui/layui.all.js"></script>
<script type="text/javascript">
layui.use('table', function(){
	  var table = layui.table;
	  table.render({
	    elem: '#test'
	    ,url:'${base}/index/fileJSON'
	    ,cellMinWidth: 120 
	    ,cols: [[
	      {field:'id', width:80, title: 'ID'}
	      ,{field:'pname', width:120, title: '项目名'}
	      ,{field:'alias',width:180, title: '文件名'}
	      ,{field:'real', title: '真实路径'}
	    ]]
	    ,page: true
	  });
	});
</script>
</html>